.PHONY:all
all:servercal clientcal

lib=-ljsoncpp
myself=# -DMySelf=1

servercal:ServerCal.cc
	g++ -o $@ $^ -std=c++11 $(lib) $(myself)
clientcal:ClientCal.cc
	g++ -o $@ $^ -std=c++11 $(lib) $(myself)

.PHONY:clean
clean:
	rm -f servercal clientcal